<?php if (!defined('THINK_PATH')) exit();?><html>
<head>

</head>

<body>

<h1>欢迎 <?php echo (session('username')); ?> <?php echo (session('uid')); ?> <a href="./logout">退出</a> <?php echo (date("Y-m-d",$time )); ?></h1>
<table border="1"  width="600" cellpadding="10">
<tr><th>序号</th>
    <th>仪器型号</th>
    <th>仪器编号</th>
	<th>借用人</th>
	<th>借用时间</th>
	<th>归还时间</th>
	<th>状态</th>
	
  </tr>
<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
    <th><?php echo ($iterm++); ?></th>
    <th><?php echo ($vo["iname"]); ?></th>
    <th><?php echo ($vo["inum"]); ?></th>
  	<th><?php echo ($vo["username"]); ?></th>
  	<th><?php echo (date("Y-m-d",$vo["btime"])); ?></th>
  <th><?php if(($vo["lstatus"]) == "0"): ?>-<?php else: echo (date("Y-m-d",$vo["stime"])); endif; ?></th>
  	<th><?php if(($vo["lstatus"]) == "0"): ?>借出<?php else: ?>归还<?php endif; ?> </th>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
 
</table>

</body>


</html>